package com.jf.apply_car.mapper;

import com.jf.apply_car.bean.Apply;
import com.jf.apply_car.bean.EchartsData;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author pang6
 * @description 针对表【apply(申请信息表)】的数据库操作Mapper
 * @createDate 2025-06-08 17:21:07
 * @Entity com.jf.apply_car.bean.Apply
 */
public interface ApplyMapper {

    int deleteByPrimaryKey(Integer id);

    int insertSelective(Apply record);

    Apply selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Apply record);

    List<Apply> getMineApply(Apply apply);

    List<Apply> getAll(Apply apply);

    int deleteBatch(int[] ids);

    List<EchartsData> getPie();

    List<EchartsData> getBar(@Param("startTime") String startTime, @Param("endTime") String endTime);

    List<EchartsData> getLine(@Param("startTime") String startTime, @Param("endTime") String endTime);

    int insertBatch(List<Apply> list);
}
